package gui.components;

import gui.utils.ComponentUtils;

import java.awt.Font;
import java.awt.Graphics;

import javax.swing.JLabel;

public class AntiAliasedLabel extends JLabel {

    private static final long serialVersionUID = 1L;

    public AntiAliasedLabel(String text, int fontSize) {
        super(text);
        setOpaque(false);
        setFont(new Font("Tahoma", Font.PLAIN, fontSize));
    }

    @Override
    public void paintComponent(Graphics g) {
        ComponentUtils.setAntiAliased(g);
        super.paintComponent(g);
    }
    
}
